<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8'>
    <title>form</title>
</head>
<body>
    <form target="#" method="post" onsubmit="test()">
        name: <input id="name" type="text" name="name" value=""><br>
        psw: <input id="psw" type="password" name="psw" value=""><br>
        <input type="submit" name="" value="submit">
    </form>
    <script src='../js/form.js'></script>
</body>
</html>